package cc.facesign.admin.bean;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2022-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TblDept对象", description="")
public class TblDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "父部门id")
    private String pid;

    @ApiModelProperty(value = "根部门id")
    private String rid;

    @ApiModelProperty(value = "部门名")
    private String name;

    @ApiModelProperty(value = "部门状态，0正常，1停用")
    private String status;

    @ApiModelProperty(value = "部门邮箱")
    private String email;

    @ApiModelProperty(value = "显示顺序")
    private Integer sort;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;

    @TableLogic
    private Integer deleted;
}
